#include<iostream>
#include"comm.hpp"

int main() {

    string parameter;
    if (GetParameter(parameter)) {

        string s1, s2;
        if (!Util::CutString(parameter, s1, s2, "&")) {
            s1 = parameter;
            s1 += "\r\n";
            cout << s1 << endl;
            cerr << s1 << endl;
        }
        else {
            cout << s1 << endl;
            cout << s2 << endl;
            cerr << s1 << endl;
            cerr << s2 << endl;
        }

    }
    return 0;
}